package org.musicsweet.mapper;

import org.musicsweet.entity.MusicAlbum;

import java.util.List;

/**
 * 专辑Mapper
 */
public interface MusicAlbumMapper {

    /**
     * 根据id查询专辑
     *
     * @param musicAlbum
     * @return
     */
    MusicAlbum getMusicAlbumById(MusicAlbum musicAlbum);

    /**
     * 多条件查询专辑
     *
     * @param musicAlbum
     * @return
     */
    List<MusicAlbum> getMusicAlbumList(MusicAlbum musicAlbum);

    /**
     * 添加专辑
     *
     * @param musicAlbum
     * @return
     */
    int addMusicAlbum(MusicAlbum musicAlbum);

    /**
     * 修改专辑
     *
     * @param musicAlbum
     * @return
     */
    int updateMusicAlbum(MusicAlbum musicAlbum);

    /**
     * 删除专辑
     *
     * @param musicAlbum
     * @return
     */
    int deleteMusicAlbum(MusicAlbum musicAlbum);

}